package hotel.dao;

import org.nutz.dao.entity.annotation.*;

@Table("customer")
public class CustomerDao {
	@Id
	private int customerNo;		// 客户编号
	@Column
	private String name;		// 客户姓名
	@Column
	private String gender;		// 客户性别
	@Column
	private String certId;		// 证件号码
	@Column
	private String phone;		// 联系电话
	@Column
	private double credit;		// 积分
	@Column("Type")
	private int customerTypeId;	// 房间类型编号
	
	@One(field="customerTypeId")
	private CustomerTypeDao customerType;// 一对一对象

	public int getCustomerNo() {
		return customerNo;
	}
	public void setCustomerNo(int customerNo) {
		this.customerNo = customerNo;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getCertId() {
		return certId;
	}
	public void setCertId(String certId) {
		this.certId = certId;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public double getCredit() {
		return credit;
	}
	public void setCredit(double credit) {
		this.credit = credit;
	}
	public int getCustomerTypeId() {
		return customerTypeId;
	}
	public void setCustomerTypeId(int customerTypeId) {
		this.customerTypeId = customerTypeId;
	}
	public CustomerTypeDao getCustomerType() {
		return customerType;
	}
	public void setCustomerType(CustomerTypeDao customerType) {
		this.customerType = customerType;
	}
}
